﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace C12_Ex03_Shaked_032675316_Itay_032511057
{
    public partial class PictureButton : ResponsivePicture
    {
        public PictureButton()
        {
            m_OnHoverEffect = new SolidColorControlPainter();
        }

        protected override void DrawWhenClicked(PaintEventArgs pe)
        {
            SolidBrush brush = new SolidBrush(Color.FromArgb(100, Color.Red));
            Region region = new Region(pe.ClipRectangle);
            pe.Graphics.FillRegion(brush, region);
        }

        protected override void AdditionalDrawings(PaintEventArgs pe)
        {
            /// No additional drawings needed here...
        }
    }
}
